/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.vn.ccrreader;

import com.sun.java.swing.plaf.gtk.GTKLookAndFeel;
import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.LookAndFeel;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.plaf.metal.MetalLookAndFeel;

/**
 *
 * @author jyothis
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        //Schedule a job for the event dispatch thread:
        //creating and showing this application's GUI.
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                try {
                    //Turn off metal's use of bold fonts
                    //com.sun.java.swing.plaf.gtk.GTKLookAndFeel.
                    LookAndFeel laf = new GTKLookAndFeel();
                    if(!laf.isSupportedLookAndFeel()){
                        laf= new WindowsLookAndFeel();
                        if(!laf.isSupportedLookAndFeel()){
                            laf = new MetalLookAndFeel();
                        }
                    }
                    UIManager.setLookAndFeel(laf);
                    new CcrReader1().setVisible(true);
                } catch (UnsupportedLookAndFeelException ex) {
                    Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        });

    }

}
